<template>
  <div class="layout-page">
    <router-view></router-view>
    <van-tabbar v-model="active" active-color="#21b97a" inactive-color="#000">
      <van-tabbar-item icon="wap-home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/collect">找房</van-tabbar-item>
      <van-tabbar-item icon="description" to="/news">资讯</van-tabbar-item>
      <van-tabbar-item icon="contact" to="/My">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
// import { user } from "@/API/user";
// import { getToken } from "@/utils/storage";
// import { Toast } from "vant";
export default {
  name: "layout-page",
  data() {
    return {
      active: 0,
      // status: "", //200
      // avatar: "", ///img/avatar.png
      // nickname: "", //好客_175231
      // flag: true, //false
    };
  },
  created() {},
  methods: {},
};
</script>

<style lang="less" scoped></style>
